<template>
	<div class="drawbox flexcolumn">
		<!-- <div class="drawimg flexcenter">
        <img :src="domain+drawitem.photo" alt="">
     </div> -->
		<div class="drawboxwhite">
			<div class="ctitle f18 mt_24 c_000 textcenter mb_20">兑奖码</div>
			<div class="f14 mt_10 textcenter codetext mt_24">{{ code }}</div>
		</div>
		<div class="flexbetween mt_60">
			<div class="flexcenter detailbtn detailbtn2 mauto c_fff f16" @click.stop="closePop">
				继续抽奖
			</div>
			<div class="flexcenter detailbtn detailbtn2 mauto c_fff f16" @click.stop="goHome">
				返回首页
			</div>
		</div>
	</div>
</template>

<script>
	export default {
		data() {
			return {};
		},
		props: {
			drawitem: {
				default: null,
			},
			code: {
				default: null,
			},
		},
		methods: {


			closePop() {
				this.$emit("close");
			},
			goHome() {
				//	this.$emit('close')
				uni.switchTab({
					url: "/pages/home/home"
				})

			}
		},
	};
</script>

<style lang="scss" scoped>
	.drawbox {
		width: 90vw;
		// height: 500px;
		display: flex;
		flex-direction: column;
		align-items: center;
		height: 99vh;
		margin: auto;
		margin-top: 400rpx;
		font-size: 26rpx;
	}

	.drawboxwhite {
		margin: 0 30rpx;
		background-color: #fff;
		height: 160rpx;
		width: 320rpx;
		border-radius: 10rpx;
	}

	.codetext {
		color: #D83724;
		font-size: 32rpx;
		font-weight: 600;
	}

	.drawimg {
		width: 80%;
		max-height: 200rpx;
		margin: auto;



		// height: auto;
	}

	.detailbtn {
		width: 300rpx;
		height: 60rpx;
		border-radius: 8rpx;
		background: linear-gradient(142deg, #EFB565 0%, #D83626 100%);
		border: 1px solid #fff;
		// background-color: #76B9FE;
		// border: 1px solid #007CFF;
	}

	.ctitle {
		margin-top: 30rpx;
	}

	.detailbtn2 {
		width: 140rpx;
		height: 60rpx;
	}

	.mauto {
		margin: 20rpx 5rpx;
	}
</style>